        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>StepValidator typedef / mock Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="mock" data-type="StepValidator">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../mock.html">mock</a> &rsaquo; <a href="../mock/StepValidator.html">StepValidator</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
</div>
<div class="content">
        <h2><strong>StepValidator</strong>
          typedef
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<p><a class="crossref" href="../mock/StepValidator.html">StepValidator</a>s are used by <code>stepwiseValidate</code> in <a class="crossref" href="../mock/LogEntryList.html">LogEntryList</a>, which
iterates through the list and call the <a class="crossref" href="../mock/StepValidator.html">StepValidator</a> function with the
log <code>List</code> and position. The <a class="crossref" href="../mock/StepValidator.html">StepValidator</a> should return the number of
positions to advance upon success, or zero upon failure. When zero is
returned an error is reported.</p>
<pre class="source">
typedef int StepValidator(List&lt;LogEntry&gt; logs, int pos);
</pre>
</div>
<div class="method"><h4 id="StepValidator">
<button class="show-code">Code</button>
typedef int StepValidator(List&lt;<a href="../mock/LogEntry.html">LogEntry</a>&gt; logs, int pos) <a class="anchor-link" href="#StepValidator"
              title="Permalink to StepValidator">#</a></h4>
<div class="doc">
<pre class="source">
typedef int StepValidator(List&lt;LogEntry&gt; logs, int pos);
</pre>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        <div class="footer">
          
        </div>
        <script async src="../client-live-nav.js"></script>
        </body></html>
        
